package com.google.code.sip.ucenter.model;

import java.util.Date;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Indexed;

/**
 * 应用实体类
 * 
 * @author Liuye
 * 
 */
@Entity(noClassnameStored = true)
@SuppressWarnings("serial")
public class Application extends BaseEntity {
	/**
	 * 应用类型
	 */
	private String type;
	/**
	 * 应用名称
	 */
	@Indexed(unique = true)
	private String name;
	/**
	 * 应用的 URL:
	 */
	private String url;
	/**
	 * 通信密钥
	 */
	private String authToken;

	/**
	 * 应用IP
	 */
	private String ip;
	/**
	 * 创建日期
	 */
	private Date createdDate = new Date();

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getAuthToken() {
		return authToken;
	}

	public void setAuthToken(String authCode) {
		this.authToken = authCode;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
}
